from Tools import log_set,send_mail
import pytest
import time
t = time.strftime('%Y%m%d_%H%M%S')      #导入时间戳
if __name__ == '__main__':
    log_set()
    pytest.main(['TestCase.py','-s','--html=baogao.html'])
    send_mail([f'baiduwebtestlog_{t}.txt','baogao.html'])